package com.yxw.springcloud.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxw.springcloud.model.Storage;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yanxw
 * @since 2021-05-10
 */
public interface StorageMapper extends BaseMapper<Storage> {


    /**
     * 减库存
     * @param productId
     * @param count
     * @return
     */
    int decrease(@Param("productId") Long productId, @Param("count") Integer count);

}
